<template>
    <div class="table-page">
        <div class="table-data-box">
            <el-table
                ref="table"
                v-loading="tableLoading"
                :data="tableData"
                border
                style="width: 100%;min-height:40em"
                row-key="id"
            >
                <el-table-column
                    type="index"
                    :index="indexMethod">
                </el-table-column>
                <el-table-column
                    prop="createdTime"
                    label="使用开始时间"
                ></el-table-column>
                <el-table-column
                    prop="expireTime"
                    label="使用过期时间"
                ></el-table-column>
                <el-table-column
                    prop="remark"
                    label="备注"
                    show-overflow-tooltip
                ></el-table-column>
            </el-table>
        </div>
        <div v-if="pageData.total" class="xy-between table-page-box">
            <el-pagination
                background
                :current-page.sync="pageData.currentPage"
                :page-sizes="pageData.pageSizes"
                :page-size.sync="pageData.pageSize"
                layout="total,  prev, pager, next, sizes, jumper"
                :total="pageData.total"
            >
            </el-pagination>
        </div>

    </div>
</template>

<script>
import { TablePage } from "@/layout/mixin/iVue.js";
import { mapState } from "vuex";

export default {
    name: "GroupRenewalLog",
    components: {},
    mixins: [TablePage],
    props: {
        groupId: {
            type: Number,
            default: null
        }
    },
    data() {
        return {
            queryData: {
                groupId: this.groupId,
                code: "",
                enable: null
            },
        };
    },
    computed: {
        ...mapState({
        })
    },
    watch: {},
    created() {},
    mounted() {},
    methods: {
        search(queryData){
            this.loadTable("/user/sys/group/log/page", queryData, true, );
        },
        indexMethod(index) {
            return index +1;
        }
    }
};
</script>

<style lang="scss" scoped>
.school-logo {
    .logo-uploader-icon {
        font-size: 28px;
        color: #8c939d;
        width: 108px;
        height: 108px;
        line-height: 108px;
        text-align: center;
    }

    .logo-img {
        width: 108px;
        height: 108px;
        display: block;
    }
}

.table-edit-from {
    .address-select {
        width: 8em;
        margin-right: 2em;
    }
}
</style>
<style>
.school-logo .logo-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.school-logo .logo-uploader .el-upload:hover {
    border-color: #409eff;
}
</style>
